package com.alter.model;

import java.io.Serializable;

import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;

import org.hibernate.annotations.GenericGenerator;

/**
 * Base Entity
 * 
 * @author zyy
 */
@MappedSuperclass
public class BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 采用HIBERNATE UUID
     */
    @Id
    @GenericGenerator(name = "UUID", strategy = "uuid")
    @GeneratedValue(generator = "UUID")
    private String aid;

    public String getAid() {
	return aid;
    }

    public void setAid(String aid) {
	this.aid = aid;
    }

}
